package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.fusin.LdResidentMappr;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LdResidentMapper;
import com.ruoyi.system.domain.LdResident;
import com.ruoyi.system.service.ILdResidentService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2022-12-02
 */
@Service
public class LdResidentServiceImpl implements ILdResidentService
{
    @Autowired
    private LdResidentMapper ldResidentMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param zhId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public LdResident selectLdResidentByZhId(Long zhId)
    {
        return ldResidentMapper.selectLdResidentByZhId(zhId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param ldResident 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<LdResident> selectLdResidentList(LdResident ldResident)
    {
        return ldResidentMapper.selectLdResidentList(ldResident);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param ldResident 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertLdResident(LdResident ldResident)
    {
        return ldResidentMapper.insertLdResident(ldResident);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param ldResident 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateLdResident(LdResident ldResident)
    {
        return ldResidentMapper.updateLdResident(ldResident);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param zhIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteLdResidentByZhIds(Long[] zhIds)
    {
        return ldResidentMapper.deleteLdResidentByZhIds(zhIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param zhId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteLdResidentByZhId(Long zhId)
    {
        return ldResidentMapper.deleteLdResidentByZhId(zhId);
    }

    @Override
    public List<LdResidentMappr> getLdResidentMappr(long zhId) {
        return ldResidentMapper.getLdResidentMappr(zhId);
    }


}
